<h1>New order</h1>

<%= error_messages_for :order %>

<% form_for(@order) do |f| %>
  <p>
    <b>Date submitted</b><br />
    <%= f.date_select :date_submitted %>
  </p>

  <p>
    <b>Customer</b><br />
    <%= f.text_field :customer %>
  </p>

  <p>
    <b>Address 1</b><br />
    <%= f.text_field :address_1 %>
  </p>

  <p>
    <b>Address 2</b><br />
    <%= f.text_field :address_2 %>
  </p>

  <p>
    <b>Sent</b><br />
    <%= f.text_field :sent %>
  </p>

  <p>
    <b>Paid</b><br />
    <%= f.text_field :paid %>
  </p>

  <p>
    <b>Sent date</b><br />
    <%= f.date_select :sent_date %>
  </p>

  <p>
    <b>Paid date</b><br />
    <%= f.date_select :paid_date %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', orders_path %>
